package com.cykj.mapper;

import com.cykj.entity.CyGoodDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CyGoodMapper {
    // 查询所有商品
    List<CyGoodDO> listGood();

    // 减少库存
    Integer subGoodStock(
           @Param("goodId") Integer goodId,
           @Param("count") Integer count);
}
